package com.lhl.log.config;

import com.lhl.log.core.LogCallback;
import com.lhl.log.core.MethodInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.lang.annotation.Annotation;
import java.util.Map;

/**
 * @className: LogTestCallback
 * @description: 日志回调声明（实现LogCallback接口）：
 * @author: king
 * @date: 2020-09-16 11:28
 **/
@Component
@Slf4j
public class LogTestCallback implements LogCallback {
    @Override
    public void callback(Annotation annotation, MethodInfo methodInfo, Map<String, Object> paramMap, Object result) {
        log.info(methodInfo.getClassAllName()+"."+methodInfo.getMethodName()+"方法的回调函数执行成功");
    }
}